Changeset 593:27aeec049e81

Show
Ignore:
Timestamp:
06/09/08 17:25:03 (7 months ago)
Author:
Maxime Petazzoni <maxime.petazzoni@…>
Children:
594:bafb8ec18224, 596:5605b642989b
Branch:
default
Message:

FS tests framework

Location:
nxos/systems/tests
Files:
2 added
3 modified

Legend:

Unmodified
Added
Removed
  • nxos/systems/tests/main.c

    r558 r593  
     1/* Copyright (c) 2007,2008 the NxOS developers 
     2 * 
     3 * See AUTHORS for a full list of the developers. 
     4 * 
     5 * Redistribution of this file is permitted under 
     6 * the terms of the GNU Public License (GPL) version 2. 
     7 */ 
     8 
    19#include "base/core.h" 
    210#include "base/drivers/systick.h" 
     
    2331  //tests_usb_hardcore(); 
    2432  //tests_radar(); 
    25   tests_util(); 
     33  //tests_util(); 
     34  tests_defrag(); 
    2635} 
  • nxos/systems/tests/tests.c

    r558 r593  
     1/* Copyright (c) 2007,2008 the NxOS developers 
     2 * 
     3 * See AUTHORS for a full list of the developers. 
     4 * 
     5 * Redistribution of this file is permitted under 
     6 * the terms of the GNU Public License (GPL) version 2. 
     7 */ 
     8 
    19/* Various test routines for components of the NXT. */ 
    210 
     
    2028 
    2129#include "tests/tests.h" 
     30#include "tests/fs.h" 
    2231 
    2332static bool test_silent = FALSE; 
    2433 
    25 static void hello(void) { 
     34void hello(void) { 
    2635  if (test_silent) 
    2736    return; 
     
    3241} 
    3342 
    34 static void goodbye(void) { 
     43void goodbye(void) { 
    3544  if (test_silent) 
    3645    return; 
     
    848857} 
    849858 
     859void tests_fs(void) { 
     860  hello(); 
     861  fs_test_infos(); 
     862  goodbye(); 
     863} 
     864 
     865void tests_defrag(void) { 
     866  hello(); 
     867  fs_test_defrag_simple(); 
     868  goodbye(); 
     869} 
     870 
    850871void tests_all(void) { 
    851872  test_silent = TRUE; 
     
    859880  tests_sysinfo(); 
    860881  tests_radar(); 
     882  tests_fs(); 
    861883 
    862884  test_silent = FALSE; 
  • nxos/systems/tests/tests.h

    r556 r593  
    1 #ifndef __NXOS_TESTS_H__ 
    2 #define __NXOS_TESTS_H__ 
     1/* Copyright (c) 2007,2008 the NxOS developers 
     2 * 
     3 * See AUTHORS for a full list of the developers. 
     4 * 
     5 * Redistribution of this file is permitted under 
     6 * the terms of the GNU Public License (GPL) version 2. 
     7 */ 
     8 
     9#ifndef __NXOS_TESTS_TESTS_H__ 
     10#define __NXOS_TESTS_TESTS_H__ 
     11 
     12void hello(void); 
     13void goodbye(void); 
    314 
    415void tests_util(void); 
     
    1425void tests_bt(void); 
    1526void tests_bt2(void); 
     27void tests_fs(void); 
     28void tests_defrag(void); 
    1629 
    1730void tests_all(void); 
    1831 
    19 #endif 
     32#endif /* __NXOS_TESTS_TESTS_H__ */