|
2 | 2 |
|
3 | 3 | print("[TESTING] Integration") |
4 | 4 |
|
| 5 | +local basedir = "../../" |
| 6 | +local notion_binary = basedir .. "notion/notion" |
| 7 | +local notionflux_binary = basedir .. "mod_notionflux/notionflux/notionflux" |
| 8 | + |
5 | 9 | local running_on_travis = os.getenv('TRAVIS') |
6 | | -local notion_binary = "../../notion/notion" |
7 | | -local notionflux_binary = "../../mod_notionflux/notionflux/notionflux" |
8 | 10 | if running_on_travis then |
9 | 11 | print('TRAVIS detected') |
10 | | - -- notion_binary = "/usr/local/bin/notion" |
11 | | - -- notionflux_binary = "/usr/local/bin/notionflux" |
12 | 12 | end |
13 | 13 |
|
14 | 14 | local success, posix = pcall(require, "posix") |
@@ -74,7 +74,28 @@ for i,testset in ipairs(testsets) do |
74 | 74 |
|
75 | 75 | local notionpid = posix.fork() |
76 | 76 | if (notionpid == 0) then |
77 | | - local result,errstr,errno = posix.exec(notion_binary, "-noerrorlog", "-display", ":99") |
| 77 | + local result,errstr,errno = posix.exec( |
| 78 | + notion_binary, |
| 79 | + "-noerrorlog", |
| 80 | + "-s", basedir .. "contrib/scripts", |
| 81 | + "-s", basedir .. "de", |
| 82 | + "-s", basedir .. "etc", |
| 83 | + "-s", basedir .. "ioncore", |
| 84 | + "-s", basedir .. "mod_dock", |
| 85 | + "-s", basedir .. "mod_menu", |
| 86 | + "-s", basedir .. "mod_mgmtmode", |
| 87 | + "-s", basedir .. "mod_notionflux", |
| 88 | + "-s", basedir .. "mod_query", |
| 89 | + "-s", basedir .. "mod_sm", |
| 90 | + "-s", basedir .. "mod_sp", |
| 91 | + "-s", basedir .. "mod_statusbar", |
| 92 | + "-s", basedir .. "mod_statusbar/ion-statusd", |
| 93 | + "-s", basedir .. "mod_tiling", |
| 94 | + "-s", basedir .. "mod_xinerama", |
| 95 | + "-s", basedir .. "mod_xkbevents", |
| 96 | + "-s", basedir .. "mod_xrandr", |
| 97 | + "-display", ":99" |
| 98 | + ) |
78 | 99 | print('Error replacing current process with notion: ' .. errstr) |
79 | 100 | os.exit(1) |
80 | 101 | end |
|
0 commit comments