Loading doc/examples/flatpak-autotools/elements/hello.bst +3 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,9 @@ description: Autotools project depends: - base.bst variables: prefix: '/app' sources: - kind: local path: files/src tests/examples/flatpak-autotools.py +8 −8 Original line number Diff line number Diff line Loading @@ -45,13 +45,13 @@ def test_autotools_build(cli, tmpdir, datafiles): result = cli.run(project=project, args=['checkout', 'hello.bst', checkout]) assert result.exit_code == 0 assert_contains(checkout, ['/usr', '/usr/lib', '/usr/bin', '/usr/share', '/usr/lib/debug', '/usr/lib/debug/usr', '/usr/lib/debug/usr/bin', '/usr/lib/debug/usr/bin/hello', '/usr/bin/hello', '/usr/share/doc', '/usr/share/doc/amhello', '/usr/share/doc/amhello/README']) assert_contains(checkout, ['/app', '/app/lib', '/app/bin', '/app/share', '/app/lib/debug', '/app/lib/debug/app', '/app/lib/debug/app/bin', '/app/lib/debug/app/bin/hello', '/app/bin/hello', '/app/share/doc', '/app/share/doc/amhello', '/app/share/doc/amhello/README']) # Test running an executable built with autotools Loading @@ -64,6 +64,6 @@ def test_autotools_run(cli, tmpdir, datafiles): result = cli.run(project=project, args=['build', 'hello.bst']) assert result.exit_code == 0 result = cli.run(project=project, args=['shell', 'hello.bst', '/usr/bin/hello']) result = cli.run(project=project, args=['shell', 'hello.bst', '/app/bin/hello']) assert result.exit_code == 0 assert result.output == 'Hello World!\nThis is amhello 1.0.\n' Loading
doc/examples/flatpak-autotools/elements/hello.bst +3 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,9 @@ description: Autotools project depends: - base.bst variables: prefix: '/app' sources: - kind: local path: files/src
tests/examples/flatpak-autotools.py +8 −8 Original line number Diff line number Diff line Loading @@ -45,13 +45,13 @@ def test_autotools_build(cli, tmpdir, datafiles): result = cli.run(project=project, args=['checkout', 'hello.bst', checkout]) assert result.exit_code == 0 assert_contains(checkout, ['/usr', '/usr/lib', '/usr/bin', '/usr/share', '/usr/lib/debug', '/usr/lib/debug/usr', '/usr/lib/debug/usr/bin', '/usr/lib/debug/usr/bin/hello', '/usr/bin/hello', '/usr/share/doc', '/usr/share/doc/amhello', '/usr/share/doc/amhello/README']) assert_contains(checkout, ['/app', '/app/lib', '/app/bin', '/app/share', '/app/lib/debug', '/app/lib/debug/app', '/app/lib/debug/app/bin', '/app/lib/debug/app/bin/hello', '/app/bin/hello', '/app/share/doc', '/app/share/doc/amhello', '/app/share/doc/amhello/README']) # Test running an executable built with autotools Loading @@ -64,6 +64,6 @@ def test_autotools_run(cli, tmpdir, datafiles): result = cli.run(project=project, args=['build', 'hello.bst']) assert result.exit_code == 0 result = cli.run(project=project, args=['shell', 'hello.bst', '/usr/bin/hello']) result = cli.run(project=project, args=['shell', 'hello.bst', '/app/bin/hello']) assert result.exit_code == 0 assert result.output == 'Hello World!\nThis is amhello 1.0.\n'