test.sh 363 B

1234567891011121314151617
  1. #!/bin/sh
  2. # Enter test directory.
  3. cd test || exit 1
  4. # Isolate the build.
  5. mkdir Build
  6. cd Build || exit 1
  7. # Generate the build files, compile the test, and run it.
  8. cmake .. -GNinja -DCMAKE_PREFIX_PATH=$PREFIX
  9. ninja || exit 1
  10. ./test || exit 1
  11. # Perform additional testing.
  12. test -f $PREFIX/lib/libyaml-cpp.so || test -f $PREFIX/lib/libyaml-cpp.dylib || exit 1