File: gjs-tests-internal.cpp

package info (click to toggle)
gjs 1.87.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 6,848 kB
  • sloc: cpp: 38,389; javascript: 31,953; ansic: 15,960; sh: 1,777; python: 791; xml: 137; makefile: 40
file content (27 lines) | stat: -rw-r--r-- 781 bytes parent folder | download
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
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; -*- */
// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
// SPDX-FileCopyrightText: 2021 Canonical, Ltd.
// SPDX-FileContributor: Marco Trevisan <marco.trevisan@canonical.com>

#include <config.h>
#include <glib.h>

#include "test/gjs-test-utils.h"

int main(int argc, char** argv) {
    // Avoid interference in the tests from stray environment variable
    g_unsetenv("GJS_ENABLE_PROFILER");
    g_unsetenv("GJS_TRACE_FD");

    g_test_init(&argc, &argv, nullptr);

    gjs_test_add_tests_for_rooting();
    gjs_test_add_tests_for_parse_call_args();
    gjs_test_add_tests_for_jsapi_utils();
    Gjs::Test::add_tests_for_toggle_queue();
    Gjs::Test::add_tests_for_misc_utils();

    g_test_run();

    return 0;
}