#!/bin/bash

TREES="linux-2.4.18 linux-2.4.19 linux-2.4.20 linux-2.4.21 linux-2.4.22"

if [ "$1" == "populate" ] || [ ! -d netfilter ]; then
	./testpom-populate $2
fi

TIME=$(date +%s)
for i in $TREES
do
	rm -rf *.pomtest* netfilter/*.pomtest*
	./testpom $i
	echo
done
TIME2=$(date +%s)

echo Total time: $(($TIME2-$TIME)) seconds

