#NEWLINE# def test_include_in_mask( tmpdir ) : #NEWLINE# #INDENT# qt_path = tmpdir . mkdir ( 'qt' ) #NEWLINE# qt_path . ensure ( 'bin' , 'assitant.exe' ) #NEWLINE# qt_path . ensure ( 'bin' , 'moc.exe' ) #NEWLINE# qt_path . ensure ( 'bin' , 'lrelease.exe' ) #NEWLINE# qt_path . ensure ( 'bin' , 'lupdate.exe' ) #NEWLINE# runtime_mask = qt_path . ensure ( 'runtime.mask' , file = True ) #NEWLINE# runtime_mask . write ( 'exclude bin/.*\\.exe\ninclude bin/lrelease.exe\ninclude bin/lupdate.exe\n' ) #NEWLINE# dest = tmpdir . join ( 'dest' ) #NEWLINE# package = qitoolchain . qipackage . QiPackage ( 'qt' , path = qt_path . strpath ) #NEWLINE# package . install ( dest . strpath , release = True , components = [ 'runtime' ] ) #NEWLINE# assert dest . join ( 'bin' , 'lrelease.exe' ) . check ( file = True ) #NEWLINE# assert ( not dest . join ( 'bin' , 'moc.exe' ) . check ( file = True ) )