Quickly run the p≡p engine tests on macOS
- Zig 86.7%
- Makefile 12.1%
- Shell 1.2%
Running the p≡p engine tests
Update all submodules to be in sync with this repo:
git submodule update --init
Don't forget to make clean after updates, or remove components manually from the prefix directory.
MacPorts to install in addition to the ones needed for the dependencies for p≡p for iOS:
sudo port install gtest libfaketime
Build and run the tests:
make
make test
Run a single test:
GTEST_FILTER="--gtest_filter AsciiBinary998Test.check_engine_895" make test
Running zig tests
The zig commands below will use pEp_homes/<email> as the p≡p home,
depending on the --myself <email>.
All p≡p files are in that directory.
# As above
make
# Reset all p≡p data, start from scratch
rm -fr pEp_homes
# Reproduce https://codeberg.org/pEp/pEpEngine/issues/236
./run_test_issue_236.sh