1
  
2
  
3
  
4
  
5
  
6
  
7
  
8
  
9
  
10
  
11
  
12
  
13
  
14
  
15
  
16
  
17
  
18
  
19
  
20
  
21
  
22
  
23
  
24
  
25
  
26
  
27
  
28
  
29
  
inherit "../test.pike"; 
 
constant BASE = __DIR__; 
 
int run() 
{ 
  werror("Run in test: %s\n", basename(BASE)); 
 
  compiler->include_path = BASE; 
 
  mixed err = catch { 
    compiler->compile_file(combine_path(BASE, "input.scss"), 
                           combine_path(BASE, "output.css")); 
  }; 
 
  werror(">>> Handle compile_file() error\n"); 
  handle_err(err); 
 
  string cont = Stdio.read_file(combine_path(BASE, "input.scss")); 
 
  err = catch { 
    compiler->compile_string(cont); 
  }; 
 
  werror("\n>>> Handle compile_string() error\n"); 
  handle_err(err); 
}