Skip to content
Snippets Groups Projects
Commit 620c29c3 authored by Martin Nilsson's avatar Martin Nilsson
Browse files

Whitelist mkexpert from #pike directive.

parent d94b2028
No related branches found
No related tags found
No related merge requests found
...@@ -134,6 +134,10 @@ int test_unicode() { ...@@ -134,6 +134,10 @@ int test_unicode() {
int test_realpike() { int test_realpike() {
int status = 1; int status = 1;
multiset whitelist = (<
"lib/modules/Calendar.pmod/mkexpert.pike",
>);
// bin and tools shouldn't really be #pike-ified, since they // bin and tools shouldn't really be #pike-ified, since they
// should run with the pike it is bundled with. // should run with the pike it is bundled with.
foreach( ({ "lib", /* "bin", "tools" */ }), string dir) foreach( ({ "lib", /* "bin", "tools" */ }), string dir)
...@@ -142,7 +146,7 @@ int test_realpike() { ...@@ -142,7 +146,7 @@ int test_realpike() {
{ {
string f = Stdio.read_file(path+file); string f = Stdio.read_file(path+file);
if(!f) { write("Unable to read %O\n", path+file); continue; } if(!f) { write("Unable to read %O\n", path+file); continue; }
if(!has_value(f,"#pike")) { if(!whitelist[path+file] && !has_value(f,"#pike")) {
write("%s%s is missing a #pike directive.\n", path,file); write("%s%s is missing a #pike directive.\n", path,file);
status = 0; status = 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment