summaryrefslogtreecommitdiffstats
path: root/net/shunt/test.sh
blob: 394ae21e35c781b2cae833d98e877478ad555fef (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
# compile and load with the shipped ucode.
#

shunt 2>&1 | grep 'usage: shunt' || exit 1

ucode -e 'import * as a from "shunt.config"; import * as b from "shunt.nft";
	import * as c from "shunt.dns"; import * as d from "shunt.frame";
	import * as e from "shunt.match"; print("modules-ok\n");' |
	grep 'modules-ok'