1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

openFrameworksのテストをローカルで osx(macOS)編

1
Posted at

意外と情報が無かったので自分のメモも兼ねて

前提

  • gitでcloneしたoF (releaseには tests/ が入ってない)
  • brew
  • Xcode
    • Command Line Tools

前準備(coreutils入れてない場合)

$ brew install coreutils

何故か後述の install.sh で coreutils だけupgradeになってるので入れておく.

環境のインストール

$ cd path/to/oF
$ ./scripts/ci/osx/intall.sh

gdb と ccache をインストールする. 2回目からは要らない. というかこれくらい coreutils と一緒にやってもok.

テスト実行

$ ./scripts/ci/osx/build.sh
$ ./scripts/ci/osx/run_tests.sh

run_tests.sh 実行時に makeで怒られたら

examples/templates/emptyExample
examples/templates/allAddonsExample
tests/**/**

上記フォルダ以下にある obj/ (ビルド結果) を消したりすると幸せになれるかも. (2時間くらいはまった)

終わりに

osx以外でも上のスクリプトが各環境毎に準備されてるのでよしなに実行すればよしなに終わるはず.

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?