(rule (targets echo1.out) (deps (:bin ../examples/echo.exe)) (locks /port) (enabled_if (= %{system} "linux")) (action (with-stdout-to %{targets} (run ./echo1.sh %{bin})))) (rule (alias runtest) (action (diff echo1.expect echo1.out))) (rule (targets sse_count.out) (deps (:bin ../examples/sse_server.exe)) (locks /port) (enabled_if (= %{system} "linux")) (action (with-stdout-to %{targets} (run ./sse_count.sh %{bin})))) (rule (alias runtest) (action (diff sse_count.expect sse_count.out))) (rule (targets upload-out) (deps (:bin ../src/bin/http_of_dir.exe) foo_50) (locks /port) (enabled_if (= %{system} "linux")) (action (with-stdout-to %{targets} (run ./upload_chunked.sh %{bin})))) (rule (alias runtest) (action (diff upload-out.expect upload-out))) (rule (targets dl-out) (deps (:bin ../src/bin/http_of_dir.exe) foo_50) (locks /port) (enabled_if (= %{system} "linux")) (action (with-stdout-to %{targets} (run ./download_chunked.sh %{bin})))) (rule (alias runtest) (action (diff dl-out.expect dl-out))) (rule (targets foo_50) (action (bash "dd if=/dev/zero of=%{targets} bs=1M count=50")))