about summary refs log tree commit diff
path: root/test.sh
blob: ca9e56e69cd3b77ddec9e048653d991337b7d92e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#! /usr/bin/env nix-shell
#! nix-shell -i bash -p

make all -j$(nproc) || exit 1
#bozohttpd -c ./cgit -I 9000 . -f -V -C '' cgit -p .
rm -rf test_utils
mkdir test_utils
nix build nixpkgs#nginx --out-link test_utils/nginx
nix build nixpkgs#fcgiwrap --out-link test_utils/fcgiwrap
nix build nixpkgs#git --out-link test_utils/git

test_utils/fcgiwrap/bin/fcgiwrap -s unix:test_utils/fcgiwrap.sock -c $(($(nproc)*4))  &
test_utils/nginx/bin/nginx -c $(pwd)/tests/nginx.conf -p $(pwd)/test_utils