#!/usr/bin/python import BoostBuild t = BoostBuild.Tester() t.write("foo.jam", r""" import common ; import generators ; import modules ; import type ; import types/cpp ; type.register FOO : foo ; type.register BAR : bar ; generators.register-standard foo.foo : FOO : CPP BAR ; .touch = [ common.file-creation-command ] ; local .sleep-delay = 2 ; .sleep = sleep $(.sleep-delay) ; if [ modules.peek : NT ] { .sleep = ping 127.0.0.1 -n $(.sleep-delay) -w 1000 >NUL ; } actions foo { $(.touch) "$(<[1])" $(.sleep) $(.touch) "$(<[2])" } """) t.write("x.foo", "") t.write("jamroot.jam", """\ import foo ; lib x : x.foo : static ; """) t.run_build_system() t.run_build_system() # Second build should not actually build anything. t.expect_nothing_more()